﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Allcate.aspx.cs" Inherits="ProjectX.Allcate" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="/WebCss/base.css" rel="stylesheet" type="text/css" />
    <link href="/WebCss/allcate.css" rel="stylesheet" type="text/css" />
    <script src="/ClientJs/jquery.js" type="text/javascript"></script>
    <title>淘我想淘-所有类目</title>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $(".catediv").bind("mouseover mouseout", function () {
                $(this).toggleClass("backcolor");
            });

            $("#mainpage").hover(function () { $(this).addClass("mainActive"); }, function () { $(this).removeClass("mainActive"); });
            $("#buy").hover(function () { $(this).addClass("buylinkactive"); }, function () { $(this).removeClass("buylinkactive"); });
            $("#mybuy").hover(function () { $(this).addClass("mybuylinkactive"); }, function () { $(this).removeClass("mybuylinkactive"); });
            $("#allbuy").hover(function () { $(this).addClass("allbuylinkactive"); }, function () { $(this).removeClass("allbuylinkactive"); });
        });
        
    </script>
</head>
<body>
<form id="mainForm" runat="server">
    <div id="headTop">
            <p>
                <asp:HyperLink ID="username" runat="server" NavigateUrl="/userCenter.html" ForeColor="Red"></asp:HyperLink>&nbsp&nbsp&nbsp欢迎来到淘我想淘网！
                <strong>
                    <asp:HyperLink ID="loginlink" runat="server" NavigateUrl="/login.html" ForeColor="White">[请登录]</asp:HyperLink>&nbsp<font color="red">|</font>&nbsp<asp:HyperLink ID="reglink" runat="server" NavigateUrl="/regedit.html" ForeColor="White">[免费注册]</asp:HyperLink>
                    <asp:LinkButton ID="logout" runat="server" ForeColor="White" 
                    Visible="false" onclick="logout_Click">[退出]</asp:LinkButton>
                </strong>
                <span>
                    <a href="/userCenter.html" target="_self" style="color:White">[用户中心]</a>&nbsp<font color="red">|</font>&nbsp[帮助中心]
                </span>
            </p>
        </div>
        <div id="newHeader" >
            <div>
                <a href="/" class="logo hidetxt"></a>
            </div>
            <ul id="newNav">
                <li><a id="mainpage" href="/" target="_parent" class="mainlink"></a></li>
                <li><a id="buy" href="/buy.html" target="_parent" class="buylink"></a></li>
                <li><a id="mybuy" href="/mybuy.html"  target="_parent" class="mybuylink"></a></li>
                <li><a id="allbuy" href="/allbuy.html"  target="_parent" class="allbuylink"></a></li>
            </ul>
        </div>
    <div id="catebody">
        <asp:DataList ID="CateList" runat="server" RepeatColumns="4" ShowFooter="False" 
            ShowHeader="False" onitemdatabound="CateList_ItemDataBound" Width="980px" 
            RepeatLayout="Flow" >
            <FooterStyle HorizontalAlign="Center" />
            <FooterTemplate>
                <asp:Panel ID="NullPanel" runat="server" CssClass="NullPanel">
                    没有数据
                </asp:Panel>
            </FooterTemplate>
            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" 
                Font-Strikeout="False" Font-Underline="False" Height="50px" 
                Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" 
                Width="235px" />
            <ItemTemplate>
                <div class="catediv">
                    <asp:HyperLink ID="catelink" runat="server">
                        <%# Eval("name").ToString().Trim() %>(<%# Eval("count").ToString().Trim() %>)
                    </asp:HyperLink>
                </div>
            </ItemTemplate>
        </asp:DataList>
    </div>
    <iframe id="Ifooter" style="border: none;margin-top:30px;margin-bottom:30px;" width="998px" height="250px" src="/footer.aspx" scrolling="no"></iframe>
</form>
</body>
</html>
